import request from '@/utils/request';

export async function login(params) {
  return request.post('/login', { data: params });
}

export async function logout() {
  return request.post('/logout');
}

export async function fetchLoginUser() {
  return request.post('/fetchLoginUser');
}

export async function changePwd(params) {
  return request.post('/changePwd', { data: params });
}
